package csel.controller.commands;

import csel.model.GameCommand;
import csel.model.GameFactory;
import csel.model.Model;
import csel.view.NewGameDialog;

public class BMNewGameCommand implements GameCommand
{
	private Model model;

	public BMNewGameCommand(Model model)
	{
		this.model = model;
	}

	public void execute()
	{
		NewGameDialog newGameDialog = new NewGameDialog();
		if (newGameDialog.show())
		{
			GameFactory.makeNewGame(newGameDialog.getOccupation(),
					newGameDialog.getName(), model);
		}
	}
}
